package com.jn.erp.web.api.student.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;


@Data
@TableName("t_student_contact_record")
public class StudentContactRecord {


  @TableId
  private Long id;
  private long studentId;
  private String info;
  // 跟进时间
  private LocalDate contactTime;

  @TableField(exist = false)
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private String conStartTime;

  @TableField(exist = false)
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private String conEndTime;

  private LocalDate contactNextTime;

  // 跟进方式 1=电话 2=微信 3=到访 4=短信 5=其他
  private long contactType;
  private String contactPhone;
  private long creator;
  private LocalDateTime addTime;
  //进展阶段 已完成 未完成
  private long states;
  private long deleted;
  private long orgId;

  //备注
  private String notes;

  // 跟进完成时间
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private LocalDate  completionTime;

  //计划时间 传当前时间
//  private LocalDate  planTime;

  @TableField(exist = false)
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private String planTime;

  //逾期时间
  @TableField(exist = false)
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private String overdueTime;



  // 跟进阶段   1 建立联系
  private String phase;

  //跟进名称
  @TableField(exist = false)
  private String phaseName;

  //跟进方式名称
  @TableField(exist = false)
  private String contactName;

  // 跟进人
  @TableField(exist = false)
  private String  courseName;

  // 跟进完成开始时间
  @TableField(exist = false)
  private String  startTime;

  //跟进完成结束时间
  @TableField(exist = false)
  private String  endTime;


  // 模糊查询
  // 学员名称
  @TableField(exist = false)
  private String name;

  //跟进人id
  @TableField(exist = false)
  private String counselorId;

  // 区分全部和我的
  @TableField(exist = false)
  private String type;

  //学员状态
  @TableField(exist = false)
  private String stage;

  //跟进状态
  private String state;

  // 我的 = 1
  @TableField(exist = false)
  private String mine;

  //电话
  @TableField(exist = false)
  private String mobile;

  // 任务状态
  @TableField(exist = false)
  private String statesName;


  @TableField(exist = false)
  private String counselor;


  // 每页显示数据
  @TableField(exist = false)
  private Integer pageSize;

  // 当前页码
  @TableField(exist = false)
  private Integer pageNum;

  //我的 跟进人id
  @TableField(exist = false)
  private String counId;

  //性别
  @TableField(exist = false)
  private String gender;

  @TableField(exist = false)
  private String wxParam;
}
